<?php
namespace app\admin\validate;

use think\Validate;

class HotelValidate extends Validate
{
    protected $rule = [
        'id' => 'number',
        'province|省' => 'require',
        'city|市' => 'require',
        'district|区' => 'require',
        'address|详细地址' => 'require',
        'linkman|联系人' => 'require',
        'phone|手机号' => 'require|mobile',
        'wechat|微信号' => 'require',
        'img_urls|图片' => 'require',
        'logo_url|logo' => 'require',
    ];

    protected $message = [];

    protected $scene = [
        'addHotel' => ['img_urls', 'logo_url', 'name' , 'province' , 'city' , 'district' , 'address' , 'linkman' , 'phone' , 'wechat'],

    ];
}
